import request from "@/utils/request";

// 查询流程列表
export function mergeGatherList(data,businessCode) {
  return request({
    url: "/system/workflow/process/search/" + businessCode,
    method: "POST",
    data: data,
  });
}
// 我待办的流程
export function mergeTodoList(data, businessCode) {
  return request({
    url: "/system/workflow/process/mytodo/" + businessCode,
    method: "POST",
    data: data,
  });
}
// 已办流程查询列表
export function mergeFinishedList(data, businessCode) {
  return request({
    url: "/system/workflow/process/myfinished/" + businessCode,
    method: "post",
    data: data,
  });
}
// 查看VPN详情接口
export function VPNdetail(query) {
  return request({
    url: "/system/vpn",
    method: "get",
    params: query,
  });
}
// 新增VPN流水号
export function addVPNdetail(query) {
  return request({
    url: "/system/vpn",
    method: "POST",
    params: query,
  });
}
// 修改VPN流水号
export function updateVPNdetail(query) {
  return request({
    url: "/system/vpn",
    method: "PUT",
    params: query,
  });
}
// 查看派工单详情接口
export function Orderdetail(query) {
  return request({
    url: "/system/order",
    method: "GET",
    params: query,
  });
}
// 新增派工单接口
export function addOrderdetail(query) {
  return request({
    url: "/system/order",
    method: "POST",
    params: query,
  });
}
// 修改派工单接口
export function updateOrderdetail(query) {
  return request({
    url: "/system/order",
    method: "PUT",
    params: query,
  });
}
// 状态下拉
export function mytodoSelectStatus(businessCode) {
  return request({
    url: "/system/workflow/process/mytodoSelectStatus/" + businessCode,
    method: "GET",
  });
}
// 项目名称下拉
export function mytodoSelectAppName(businessCode) {
  return request({
    url: "/system/workflow/process/mytodoSelectAppName/" + businessCode,
    method: "GET",
  });
}
// 申请发起公用接口（后加）
export function getFormCommon(query) {
  return request({
    url: "/system/workflow/office/getFormCommon",
    method: "get",
    params: query,
  });
}

//导出
export function exportExe(data) {
  return request({
    url: "/cm-system/export/elecFormSystemConfigExcle",
    method: "post",
    data,
    responseType: "blob",
  
  });
}
// 企业历史申请列表
export function detailHistory(query) {
  return request({
    url: "/system/business/history",
    method: "get",
    params: query,
  });
}
